package br.com.poc.pitagorasnumero.view.dto;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * The Class ResultPitagorasDTO.
 * 
 * @author irlan.gomes
 */
public class ResultPitagorasDTO implements Parcelable {

	/** The type signification. */
	private String typeSignification;

	/** The signification name. */
	private String significationName;

	/**
	 * Gets the type signification.
	 * 
	 * @return the type signification
	 */
	public String getTypeSignification() {
		return typeSignification;
	}

	/**
	 * Sets the type signification.
	 * 
	 * @param typeSignification
	 *            the new type signification
	 */
	public void setTypeSignification(final String typeSignification) {
		this.typeSignification = typeSignification;
	}

	/**
	 * Gets the signification name.
	 * 
	 * @return the signification name
	 */
	public String getSignificationName() {
		return significationName;
	}

	/**
	 * Sets the signification name.
	 * 
	 * @param significationName
	 *            the new signification name
	 */
	public void setSignificationName(final String significationName) {
		this.significationName = significationName;
	}

	// ///////////////////////// PARCELABLE /////////////////////////////////

	/**
	 * 
	 */
	public ResultPitagorasDTO(Parcel parcel) {
		this.significationName = parcel.readString();
		this.typeSignification = parcel.readString();
	}

	/**
	 * 
	 */
	public ResultPitagorasDTO() {
		super();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see android.os.Parcelable#describeContents()
	 */
	/** {@inheritDoc} **/
	@Override
	public int describeContents() {
		return 0;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see android.os.Parcelable#writeToParcel(android.os.Parcel, int)
	 */
	/** {@inheritDoc} **/
	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.significationName);
		dest.writeString(this.typeSignification);
	}

	public static final Parcelable.Creator<ResultPitagorasDTO> CREATOR = new Parcelable.Creator<ResultPitagorasDTO>() {

		@Override
		public ResultPitagorasDTO createFromParcel(Parcel source) {
			return new ResultPitagorasDTO(source);
		}

		@Override
		public ResultPitagorasDTO[] newArray(int size) {
			return new ResultPitagorasDTO[size];
		}
	};

}